/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package org.projetjava.client;

import com.google.gwt.user.client.*;
import com.google.gwt.user.client.ui.*;

/**
 *
 * @author Olivier
 */
public class Menu extends Composite implements ClickListener {

    MenuBar menu = new MenuBar();

    public Menu()
    {
        Command cmd = new Command(){
            public void execute() {
                Window.alert("Catalogue de produits");
            }
        };
        
        menu.addItem("Voir les produits", cmd);
        menu.addStyleName(".gwt-MenuBar");

        initWidget(menu);
    }

    public void onClick(Widget sender) {
        throw new UnsupportedOperationException("Not supported yet.");
    }

}
